package com.example.service.db2.impl;

import com.example.common.DBTypeEnum;
import com.example.common.DataSourceSwitch;
import com.example.entity.Seckill;
import com.example.mapper.SeckillMapper;
import com.example.service.db2.ISeckillService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 秒杀库存表 服务实现类
 * </p>
 *
 * @author John123
 * @since 2018-08-27
 */
@Service
@DataSourceSwitch(DBTypeEnum.db2)
public class SeckillServiceImpl extends ServiceImpl<SeckillMapper, Seckill> implements ISeckillService {

    @Override
    public Seckill getById(int id) {
        return baseMapper.selectById(id);
    }
}
